package com.come4loves.game.module.fight.action;

import com.come4loves.game.proto.BattleProto;
import com.google.protobuf.GeneratedMessage.Builder;

public class ChooseCardAction extends Action {
	private int chooseNum;
	public ChooseCardAction(long actorId,int num) {
		super(actorId);
		this.chooseNum = num;
	}

	
	public int getChooseNum() {
		return chooseNum;
	}

	@Override
	public Builder<?> toProtocolBufferBuilder() {
		BattleProto.ChooseCardAction.Builder builder = BattleProto.ChooseCardAction.newBuilder();
		builder.setActorId(this.id);
		builder.setChooseNum(this.chooseNum);
		return builder;
	}

}
